package Chapter7;
import java.util.*;
public class Example18 {
	public static void main(String[] args) {
		Map map=new HashMap();
		map.put("1", "jack");
		map.put("2", "rose");
		map.put("3", "tom");
		Collection values=map.values();
		Iterator it=values.iterator();
		while(it.hasNext()) {
			Object value=it.next();
			System.out.println(value);
		}
	}

}
